package com.company.cloud.point.modules.mgr.controller.req;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.point.constant.PointRuleTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Map;

@Getter
@Setter
public class PointRuleConfigSaveParam extends BaseParam {



    @ApiModelProperty(value = "积分规则编号")
    private String ruleNo;

    @ApiModelProperty(value = "公司编号",required = true)
    @NotEmpty(message = "公司编号不能为空")
    private String companyNo;

    @ApiModelProperty(value = "规则分类【PointRuleTypeEnum】",required = true)
    @NotEmpty(message = "规则分类不能为空")
    private String ruleType= PointRuleTypeEnum.Common_RuleType.getCode();


    @ApiModelProperty(value = "规则名称",required = true)
    @NotEmpty(message = "规则名称不能为空")
    private String ruleName;

    @ApiModelProperty(value = "奖励分值",required = true)
    @NotNull(message = "奖励分值不能为空")
    private Integer rewardVal;


    @ApiModelProperty(value = "事件编号",required = true)
    @NotEmpty(message = "事件编号不能为空")
    private String eventNo;

    @ApiModelProperty(value = "奖励条件")
    private Map<String,String> rewardCondition;




}
